﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmPopUpBodegas.aspx.vb" Inherits="Dialogos_frmPopUpBodegas" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Bodegas</title>
     <link href="../Estilos/Estilo.css" rel="stylesheet" type="text/css" />
     <script language="javascript" type="text/javascript" src="../Scripts/JSEventHandlers.js"></script>
     <script language="javascript" type="text/javascript" src="../Scripts/JSUtilitarios.js"></script>
     <script language="javascript" type="text/javascript" src="../Scripts/CalendarPopup.js"></script>
</head>
<body>
		<form id="frmClasificacion" method="post" runat="server">
			<table class="Secciones" id="tblBodega" cellspacing="1" cellpadding="1" width="500" align="center">
				<tr>
					<td class="CeldasEspeciales" colspan="4"><asp:label id="lblTitulo" runat="server" CssClass="Titulos"> .:: Bodegas .:.</asp:label></td>
				</tr>
				<tr>
					<td style="WIDTH: 80px; HEIGHT: 23px" width="80">
						<asp:label id="lblBodega" runat="server" CssClass="Etiquetas" Width="100%">Bodega</asp:label>
                    </td>
					<td style="HEIGHT: 23px" width="140">
						<asp:textbox id="txtBodega" runat="server" CssClass="CajasTexto" Width="140px" MaxLength="4"></asp:textbox>
                    </td>
					<td style="HEIGHT: 23px" width="270" colspan="2" align="right">
						<asp:button id="btnBuscar" runat="server" CssClass="Botones" Text="Buscar"></asp:button>
                    </td>
				</tr>
				<tr>
					<td style="HEIGHT: 20px" width="150" colspan="4"><asp:datagrid id="grdBodegas" runat="server" Width="519px" AllowPaging="True" Font-Names="Verdana"
							Font-Size="11px" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Horizontal" AutoGenerateColumns="False"
							AllowSorting="True">
							<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="LightSlateGray"></SelectedItemStyle>
							<AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
							<ItemStyle ForeColor="#4A3C8C" BackColor="White"></ItemStyle>
							<HeaderStyle CssClass="grilla_header "></HeaderStyle>
							<FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn DataNavigateUrlField="BODEGA" DataNavigateUrlFormatString="javascript:DevolverValores('{0}')"
									DataTextField="BODEGA" SortExpression="BODEGA" HeaderText="Bodega">
									<HeaderStyle Width="40px"></HeaderStyle>
								</asp:HyperLinkColumn>
								<asp:BoundColumn DataField="NOMBRE" SortExpression="NOMBRE" HeaderText="Nombre"></asp:BoundColumn>
								<asp:BoundColumn DataField="TIPO" SortExpression="TIPO" HeaderText="Tipo"></asp:BoundColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF" PageButtonCount="15"
								Mode="NumericPages"></PagerStyle>
						</asp:datagrid></td>
				</tr>
				<tr>
					<td align="center" colspan="4"></td>
				</tr>
				<tr>
					<td align="center" colspan="4"><asp:label id="lblMensaje" runat="server" CssClass="Mensaje"></asp:label></td>
				</tr>
				<tr>
					<td colspan="4"><input class="CajasTexto" id="hidArticulo" style="WIDTH: 15px; HEIGHT: 12px" type="hidden"
							size="1" name="hidArticulo" runat="server"/><input class="CajasTexto" id="hidCompania" type="hidden" size="1" name="hidCompania" runat="server"/>
                            <input class="CajasTexto" id="hdnTipoPopUp" type="hidden" size="1" name="hidCompania" runat="server"/>
                    </td>
				</tr>
			</table>
		</form>
		<script language="javascript" type="text/javascript">
		    var opener = window.dialogArguments;

		    function DevolverValores(Bodega) {
		        opener.SetearBodega(Bodega);
		        window.close();
		    }
		</script>
	</body>
</html>
